// product.ts (推荐使用 Pinia)
import { defineStore } from 'pinia'

export const useProductStore = defineStore('product', {
  state: () => ({
    products: [],
    currentType: null,
    // ...其他状态
  }),
  actions: {
    fetchProducts() {
      // API 请求逻辑
    }
  }
})
